import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import './assets/css/base.css'
import {arrChunk} from './assets/js/base'

Vue.config.productionTip = false
Vue.prototype.arrChunk = arrChunk

Vue.use(ElementUI);
Vue.use(preview)

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')


store.dispatch('setWorksDetail','worksDetail');
store.dispatch('setInnovateDetail','innovateDetail');
store.dispatch('setBaseInfo','baseInfo');